﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using DocumentManagement.ViewsModels;

namespace DocumentManagement.Views
{
    /// <summary>
    /// Interaction logic for ReportDocumentINDate.xaml
    /// </summary>
    public partial class ReportDocumentINDate : Window
    {
        ReportDocumentINDateViewsModel _reportDocumentINDateViewsModel;
        public ReportDocumentINDate(DateTime? DateDocInFrom, DateTime? DateDocInTo)
        {
            InitializeComponent();
            _reportDocumentINDateViewsModel = this.Resources["reportDocumentINDateViewsModel"] as ReportDocumentINDateViewsModel;
            _reportDocumentINDateViewsModel.MyDateDocInFrom = DateDocInFrom;
            _reportDocumentINDateViewsModel.MyDateDocInTo = DateDocInTo;
        }

        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            _reportDocumentINDateViewsModel.CheckDateReport();

            //ReceiveCodeOrTitleTextBox.Text = ShowReceiveDataGrid.Items.Count.ToString();
            
        }
    }
}
